package com.lz.ovuola.web.api;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.lz.ovuola.service.VersionService;
import com.lz.ovuola.util.annotation.ApiRestController;

/**
 * 版本信息控制层
 * 
 * @author a
 *
 */
@RestController
public class VersionController extends AbstractRestController {

	@Autowired
	private VersionService versionService;

	/**
	 * 获取版本信息
	 * 
	 * @return
	 */
	@ApiRestController(isRight = false)
	@RequestMapping(value = "versions", method = RequestMethod.GET)
	public String find() {
		return versionService.getVersion();
	}
}
